package main

import (
	"net"

	"gitee.com/xjsys/rpctest/message"
	"google.golang.org/grpc"
)

func main() {
	server := grpc.NewServer()
	lis, err := net.Listen("tcp", ":8090")
	if err != nil {
		panic(err.Error())
	}

	message.RegisterCmdServiceServer(server, &CmdServiceImpl{})
	server.Serve(lis)
}
